package com.ropeok.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

public class User {
    @NotNull(message = "请输入用户id")
    private Integer userid;
    @NotBlank(message = "请输入用户名")
    private String  username;
    @NotBlank(message = "请输入密码")
    private String  password;
    private List<Role> Lrole;
    private List<permissions> Lpermissions;

    public List<Role> getLrole() {
        return Lrole;
    }

    public void setLrole(List<Role> lrole) {
        Lrole = lrole;
    }

    public List<permissions> getLpermissions() {
        return Lpermissions;
    }

    public void setLpermissions(List<permissions> lpermissions) {
        Lpermissions = lpermissions;
    }

    public Integer getUserid() {
        return userid;
    }



    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", Lrole=" + Lrole +
                ", Lpermissions=" + Lpermissions +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
